About:This is a tool for graphically adjusting platformer physics variables in real-time. I was wondering why I couldn't find something like this, so I went and wrote one myself. It was initially meant for fine-tuning AIME's physics, but I figured it could be helpful to others too, so I'm making it public right here.
It's got some fancy mathy things like being able to set the desired jump height and the duration until the peak, which are meant to save you some tedious manual balancing.
How to use:The character starts out with all forces zeroed, so drag some sliders around with your mouse. Then use the left/right keys to move the red box around and the up key to jump. There's three red lines around the controlled box, one for predicting your jump height, and two for predicting how far one tap will slide you (which isn't all that useful to be honest).
Here's what all the variables do exactly:
-xacc: added to the player's dx (horizontal movement) every frame a key is pressed
-maxspeed: dx is capped to this
-xslow: dx is divided by this every frame a key isn't pressed, causing smooth sliding instead of a quick stop
-yacc: added to dy (vertical movement) every frame
-jumpacc: the jump boost, subtracted from dy once when the jump key is pressed
-jumpheight: sets the jump height while keeping the same duration
-jumptime: sets the jump duration while keeping the same height
If you're wondering how you'd implement those in your game, you can find base code of my suggested use case
over here.
Known bugs/improvements:-The jump height/time sliders get stuck when the predicted jump hits a wall; move other sliders to refresh them for now
-The jumptime slider snaps when dragged really fast
-I guess you people would like a larger screen to work with, maybe different sizes of rectangles.
-More sliders?!